import request from '@/utils/request'

// 查询快递员信息列表
export function listPostman(query) {
  return request({
    url: '/logistics/postman/list',
    method: 'get',
    params: query
  })
}

// 查询快递员信息详细
export function getPostman(userId) {
  return request({
    url: '/logistics/postman/' + userId,
    method: 'get'
  })
}

// 新增快递员信息
export function addPostman(data) {
  return request({
    url: '/logistics/postman',
    method: 'post',
    data: data
  })
}

// 修改快递员信息
export function updatePostman(data) {
  return request({
    url: '/logistics/postman',
    method: 'put',
    data: data
  })
}

// 删除快递员信息
export function delPostman(userId) {
  return request({
    url: '/logistics/postman/' + userId,
    method: 'delete'
  })
}
